package no.sachmuld.methodcombination.examples.annotation.aopstyle.foo;

import no.sachmuld.methodcombination.api.MethodInvocation;

/**
 *
 */
public class FooX extends Foo {

    public FooX() {
        with(new FooBehaviour() {

            @Override
            public String bar(int i, MethodInvocation<String> methodInvocation) {
                System.out.println("FooX.bar(" + i + ")");
                return "FooX";
            }

            @Override
            public String baz(int i, MethodInvocation<String> methodInvocation) {
                System.out.println("FooX.baz(" + i + ")");
                return "FooX";
            }

        });
    }

}

